<?php

namespace app\admin\model\article;

use think\Cache;
use app\admin\model\article\Article as ArticleModel;
use app\common\model\article\Category as CategoryModel;
use think\Model;

/**
 * 房源板块模型
 * Class Category
 * @package app\store\model\article
 */
class Category extends Model{
    protected $name = 'yonghui_plate';
    /**
     * 所有板块
     */
    public static function getALL(){
        $model = new static;
        $data = $model->order([ 'createTime' => 'asc'])->where(['status'=>1])->select();
        $all = !empty($data) ? $data->toArray() : [];
        return $all;
    }
}
